package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.XsskBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface XsskService extends BaseService<XsskBean> {

	XsskBean getXsskBeanById(String id) throws Exception;
	
	void removeXsskBeanById(String id) throws Exception;
	
	void removeXsskBeanByIds(String ids) throws Exception;
	
	XsskBean saveXsskBean(XsskBean crm) throws Exception;
	
	XsskBean updateXsskBean(XsskBean crm) throws Exception;
	
	Page<XsskBean>  findXsskBeanByCond(XsskBean bean,
			Page<XsskBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveXsskBeanExt(String sql) throws Exception;

	String findXsskBeanExtCreate(String tableName) throws Exception;

	String findXsskBeanExtEdit(String tableName, String id)
			throws Exception;

	String findXsskBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasXsskBeanExtData(String tableName, String id)
			throws Exception;
}